#!/bin/bash

# Preflight script to remove old 
# 8/9/06 SFM Original version

function error()
{
    echo "*********" "$1" 
    exit
}

# The installer shell should write the location of the game folder
# into /tmp

echo "Preflight script is launching"

# Clean up the /tmp folder.
# rm -r "/tmp/AspyrInstaller"
# rm "/tmp/AspyrInstaller.txt"

GameFolder="`cat /tmp/AspyrInstaller.txt`"

echo "GameFolder is: "
echo "$GameFolder"

chmod g+w "$GameFolder"/"Call of Duty 2 Data"


exit 0
